<div class="ui fullscreen  modal" id="fileUpMySheet">

    <i class="close icon" ng-click="cancelUp()"></i>
    <div class="header">
        <div class="ui form" style="">
            <div class="inline fields">
                <label>上传的表名</label>
                <input type="text" ng-model="sheetF.sheetName" placeholder="请输入表名"  style="max-width: 220px;"/>
                <!--<div class="ui red" ng-show="hasItName">该表名已存在数据源中</div>-->
            </div>
        </div>
    </div>
    <div class="content" style="padding-bottom: 0px;">
    <div class="ui top attached tabular menu" style="overflow-x:auto;overflow-y: hidden; ">
        <a ng-class="{'item':true,'active':$index==sheetF.sheetIndex}" data-tab="{{$index}}" ng-repeat="item in mysheet.sheetNames track by $index" ng-click="chooseTab($index)">{{item}}</a>
    </div>
    <div class="ui bottom attached tab segment active" data-tab="{{$index}}" ng-show="$index==sheetF.sheetIndex" ng-repeat="item in mysheet.sheetNames track by $index">
        <div id="mySheetBox" class="myBoxsheet ui form small" ng-show="!sheetHasNoData">
            <!--表头-->
            <table id="mySheetTable" class="ui celled striped table" ng-show="myTimer" style="table-layout:fixed;">
                <thead>
                <tr align="center">
                    <th>数据类型</th>
                    <th ng-repeat="item in sheetDataTypes[sheetF.sheetIndex] track by $index" ng-show="isHideThisTd[sheetF.sheetIndex][$index].show" ng-class="{'hideTh':!sheetDataType[sheetF.sheetIndex][$index].show}">

                        <div class="fields" style="width: 130px;margin: 0 auto;">
                            <div class="inline field" style="padding: 0">
                                <div class="ui checked checkbox">
                                    <input type="checkbox" checked="" ng-model="sheetDataType[sheetF.sheetIndex][$index].show">
                                    <label></label>
                                </div>
                            </div>

                            <div class="inline field">
                                <!--sheetDataType 为默认的数值-->
                                <select style="width:80px;" class="ui dropdown" ng-model="sheetDataType[sheetF.sheetIndex][$index].type" ng-options="datatype as datatype for datatype in item">
                                </select>
                            </div>
                        </div>
                        <!--{{item}}-->
                    </th>
                </tr>

                <tr class="active" ng-dblclick="mycaptionS(-1)" align="center" ng-class="{'throline':mycaptionSelectNum!=-1}">
                    <th><span ng-hide="headsAtLineIndex[sheetF.sheetIndex]!=-1">双击选择该标题行</span></th>
                    <th  ng-repeat="item in sheetHeads[sheetF.sheetIndex] track by $index" ng-show="isHideThisTd[sheetF.sheetIndex][$index].show" title="{{item}}">{{item}}</th>
                </tr>
                </thead>
                <tbody>
                    
                <!--<tr class="active" ng-click="mycaptionS(-1)">
                    <td><span ng-hide="headsAtLineIndex[sheetF.sheetIndex]!=-1">选择该标题行</span></td>
                    <td ng-repeat="item in sheetHeads[sheetF.sheetIndex] track by $index">{{item}}</td>
                </tr>-->
                <!--待插入-->
                </tbody>
            </table>

        </div>
        <div ng-show="sheetHasNoData">没有数据</div>
        <div class="ui divider"></div>
        <div class="actions clearfix" ng-show="!sheetHasNoData">
            <label class="mt20 fl" style="color: gray"><i class="warning sign icon"></i>请先进行行筛选和列筛选，最后上传 </label>
            <div class="actions" style="text-align: right">
                <button class="ui basic button call" ng-click="cancelUp()">取消</button>
                <button class="ui basic button red" ng-click="okUp()">上传</button>
            </div>
        </div>
    </div>
    </div>
</div>